package proxy;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CarProxy implements  Car {
    private Car car;

    public CarProxy(Car car) {
        this.car = car;
    }

    @Override
    public void driver() {
        SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println(sd.format(new Date()));
        car.driver();
    }
}
